added samples
[windows-sources.git] / sdk / samples / all in on code / Visual Studio 2008 / CSTabbedWebBrowser / DWebBrowserEvents2.cs
blob05150fdfc15a5b99c17598092803d53d5c50c986
1 /****************************** Module Header ******************************\
2 * Module Name: DWebBrowserEvents2.cs
3 * Project: CSTabbedWebBrowser
4 * Copyright (c) Microsoft Corporation.
5 *
6 * The interface DWebBrowserEvents2 designates an event sink interface that an
7 * application must implement to receive event notifications from a WebBrowser
8 * control or from the Windows Internet Explorer application. The event
9 * notifications include NewWindow3 event that will be used in this
10 * application.
12 * To get the full event list of DWebBrowserEvents2, see
13 * http://msdn.microsoft.com/en-us/library/aa768283(VS.85).aspx
15 * This source is subject to the Microsoft Public License.
16 * See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL.
17 * All other rights reserved.
19 * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
20 * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
21 * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
22 \***************************************************************************/
24 using System;
25 using System.Runtime.InteropServices;
27 namespace CSTabbedWebBrowser
29 [ComImport, TypeLibType(TypeLibTypeFlags.FHidden),
30 InterfaceType(ComInterfaceType.InterfaceIsIDispatch),
31 Guid("34A715A0-6587-11D0-924A-0020AFC7AC4D")]
32 public interface DWebBrowserEvents2
34 /// <summary>
35 ///
36 /// </summary>
37 /// <param name="ppDisp">
38 /// An interface pointer that, optionally, receives the IDispatch interface
39 /// pointer of a new WebBrowser object or an InternetExplorer object.
40 /// </param>
41 /// <param name="Cancel">
42 /// value that determines whether the current navigation should be canceled
43 /// </param>
44 /// <param name="dwFlags">
45 /// The flags from the NWMF enumeration that pertain to the new window
46 /// See http://msdn.microsoft.com/en-us/library/bb762518(VS.85).aspx.
47 /// </param>
48 /// <param name="bstrUrlContext">
49 /// The URL of the page that is opening the new window.
50 /// </param>
51 /// <param name="bstrUrl">The URL that is opened in the new window.</param>
52 [DispId(0x111)]
53 void NewWindow3(
54 [In, Out, MarshalAs(UnmanagedType.IDispatch)] ref object ppDisp,
55 [In, Out] ref bool Cancel,
56 [In] uint dwFlags,
57 [In, MarshalAs(UnmanagedType.BStr)] string bstrUrlContext,
58 [In, MarshalAs(UnmanagedType.BStr)] string bstrUrl);